package lab02.test22;

import java.util.Scanner;

public class Test22 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串包括字母，数字及其他字符：");
        String  a = sc.next();

        for (int i = 0; i < a.length(); i ++){
            if (a.charAt(i)>65&& a.charAt(i) <91){
                System.out.print((char)(a.charAt(i)+32));
            }else if (a.charAt(i)>98&&a.charAt(i)<124){
                System.out.print((char)(a.charAt(i)-32));
            }else if (a.charAt(i)>='0'&&a.charAt(i) <= '9'){
                System.out.print('0');
            }else System.out.print('#');
        }


    }
}
